\hypertarget{class_token}{
\subsection{Token Class Reference}
\label{class_token}\index{Token@{Token}}
}
Describes a \hyperlink{class_token}{Token} for the PL lanaguage.  


{\tt \#include $<$Token.h$>$}

Inheritance diagram for Token:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=79pt]{class_token__inherit__graph}
\end{center}
\end{figure}
\subsubsection*{Public Types}
\begin{CompactItemize}
\item 
enum \hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2}{TokenType} \{ \par
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2c45391dd0955faaa1a1f820689d3908b}{ERROR}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2add68b0fce8e624cd9781cce293ee974}{EMPTY}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2b743027aa16d0abbeba7224700c7a20d}{ID}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2b2dccebbc65de545c108004dcfd68b2a}{KEYWORD}, 
\par
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2746388b0c9e8d72af713906dad72ab10}{NUMBER}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2c1c17c05f9485342ec4d585029d3ea55}{AND}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a25b6d4961a35b2c025b1d03ff282538f3}{LEFT\_\-PARATHESIS}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a24fda0d1be1cd110541cb0df51b1f4dcd}{RIGHT\_\-PARATHESIS}, 
\par
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a23c3f07781050ce3b8921af4ceabbeab9}{TIMES}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2665cdd26555d2d6fba65ca37270996fb}{ADD}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2b728f76af630cb15f13a7be0a2c6aeb1}{COMMA}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a27c9f1da62955518f527ef4558feaaa15}{ARROW}, 
\par
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a273a131c42ceafb89c3cefff55ebfc413}{MINUS}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2535870f583d8b0fe26288fa703d29951}{PERIOD}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a252466c3b1dd970d1c95f0d1300af7ca2}{DIV}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a25de40ae16ac5d43c9bdab39ac77ebe89}{ASSIGN}, 
\par
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2e121a896d0c5c2467ae145dc05b8fe30}{SEMI\_\-COLON}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2e297da8b7a9a6d0e1350d9c6d20cf5a4}{LESS\_\-THAN}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a209e1712690d78710a2157347decd7592}{EQUAL}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a207c94c1f133824d5592462a087c2424b}{GREATER\_\-THAN}, 
\par
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2d48b38e0676f66d82a623e1d209df857}{GUARD\_\-SEPERATOR}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2c2fdeb7d34fc9994b0240f5a391ac3ef}{LEFT\_\-BRACKET}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2cf3ec031a36b99954087554ff977cfa4}{MOD}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2ae835d552a4a3339d2787322f0d20eb8}{RIGHT\_\-BRACKET}, 
\par
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a276f90db085fe3d420b8a32bcca904189}{OR}, 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a23ca172c4cc192fb59cbd47a6d0331429}{NOT}
 \}
\begin{CompactList}\small\item\em The valid \hyperlink{class_token}{Token} types. \item\end{CompactList}\end{CompactItemize}
\subsubsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{class_token_a3c5868ba4115f3189df6b2ac5b36f39}{
\hyperlink{class_token_a3c5868ba4115f3189df6b2ac5b36f39}{Token} ()}
\label{class_token_a3c5868ba4115f3189df6b2ac5b36f39}

\begin{CompactList}\small\item\em Constuctor. \item\end{CompactList}\item 
\hyperlink{class_token_e31e5acc4ba765133d8b9ff6fc3da853}{Token} (\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2}{TokenType} \_\-type)
\begin{CompactList}\small\item\em Constuctor. \item\end{CompactList}\item 
\hyperlink{class_token_d80928a0dff686ec8d11da0b5d6944a2}{TokenType} \hyperlink{class_token_42c89fc506c11aaf9f91f2e904e83bbe}{Type} ()
\begin{CompactList}\small\item\em Getter - type. \item\end{CompactList}\item 
string \hyperlink{class_token_4e0ca338277bccb0f820f5149e82af79}{toString} ()
\begin{CompactList}\small\item\em A String representation of \hyperlink{class_token}{Token}. \item\end{CompactList}\end{CompactItemize}


\subsubsection{Detailed Description}
Describes a \hyperlink{class_token}{Token} for the PL lanaguage. 

Base class for Tokens. \hyperlink{class_numeric}{Numeric} and \hyperlink{class_word}{Word} extend this class store specific \hyperlink{class_token}{Token} types. 

\subsubsection{Member Enumeration Documentation}
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2}{
\index{Token@{Token}!TokenType@{TokenType}}
\index{TokenType@{TokenType}!Token@{Token}}
\paragraph{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Token::TokenType}}\hfill}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2}


The valid \hyperlink{class_token}{Token} types. 

This is all the valid \hyperlink{class_token}{Token} types accepted by the PL language. The base class \hyperlink{class_token}{Token} stores the \hyperlink{class_token}{Token} Type \begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{ERROR@{ERROR}!Token@{Token}}\index{Token@{Token}!ERROR@{ERROR}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2c45391dd0955faaa1a1f820689d3908b}{
ERROR}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2c45391dd0955faaa1a1f820689d3908b}
}]Error. \index{EMPTY@{EMPTY}!Token@{Token}}\index{Token@{Token}!EMPTY@{EMPTY}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2add68b0fce8e624cd9781cce293ee974}{
EMPTY}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2add68b0fce8e624cd9781cce293ee974}
}]Empty token. \index{ID@{ID}!Token@{Token}}\index{Token@{Token}!ID@{ID}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2b743027aa16d0abbeba7224700c7a20d}{
ID}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2b743027aa16d0abbeba7224700c7a20d}
}]\hyperlink{class_word}{Word} token. \index{KEYWORD@{KEYWORD}!Token@{Token}}\index{Token@{Token}!KEYWORD@{KEYWORD}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2b2dccebbc65de545c108004dcfd68b2a}{
KEYWORD}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2b2dccebbc65de545c108004dcfd68b2a}
}]Keyword token. \index{NUMBER@{NUMBER}!Token@{Token}}\index{Token@{Token}!NUMBER@{NUMBER}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2746388b0c9e8d72af713906dad72ab10}{
NUMBER}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2746388b0c9e8d72af713906dad72ab10}
}]\hyperlink{class_numeric}{Numeric} token. \index{AND@{AND}!Token@{Token}}\index{Token@{Token}!AND@{AND}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2c1c17c05f9485342ec4d585029d3ea55}{
AND}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2c1c17c05f9485342ec4d585029d3ea55}
}]\& \index{LEFT\_\-PARATHESIS@{LEFT\_\-PARATHESIS}!Token@{Token}}\index{Token@{Token}!LEFT\_\-PARATHESIS@{LEFT\_\-PARATHESIS}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a25b6d4961a35b2c025b1d03ff282538f3}{
LEFT\_\-PARATHESIS}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a25b6d4961a35b2c025b1d03ff282538f3}
}]( \index{RIGHT\_\-PARATHESIS@{RIGHT\_\-PARATHESIS}!Token@{Token}}\index{Token@{Token}!RIGHT\_\-PARATHESIS@{RIGHT\_\-PARATHESIS}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a24fda0d1be1cd110541cb0df51b1f4dcd}{
RIGHT\_\-PARATHESIS}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a24fda0d1be1cd110541cb0df51b1f4dcd}
}]) \index{TIMES@{TIMES}!Token@{Token}}\index{Token@{Token}!TIMES@{TIMES}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a23c3f07781050ce3b8921af4ceabbeab9}{
TIMES}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a23c3f07781050ce3b8921af4ceabbeab9}
}]$\ast$ \index{ADD@{ADD}!Token@{Token}}\index{Token@{Token}!ADD@{ADD}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2665cdd26555d2d6fba65ca37270996fb}{
ADD}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2665cdd26555d2d6fba65ca37270996fb}
}]+ \index{COMMA@{COMMA}!Token@{Token}}\index{Token@{Token}!COMMA@{COMMA}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2b728f76af630cb15f13a7be0a2c6aeb1}{
COMMA}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2b728f76af630cb15f13a7be0a2c6aeb1}
}], \index{ARROW@{ARROW}!Token@{Token}}\index{Token@{Token}!ARROW@{ARROW}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a27c9f1da62955518f527ef4558feaaa15}{
ARROW}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a27c9f1da62955518f527ef4558feaaa15}
}]-$>$ \index{MINUS@{MINUS}!Token@{Token}}\index{Token@{Token}!MINUS@{MINUS}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a273a131c42ceafb89c3cefff55ebfc413}{
MINUS}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a273a131c42ceafb89c3cefff55ebfc413}
}]{\em -\/} \index{PERIOD@{PERIOD}!Token@{Token}}\index{Token@{Token}!PERIOD@{PERIOD}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2535870f583d8b0fe26288fa703d29951}{
PERIOD}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2535870f583d8b0fe26288fa703d29951}
}]{\em \/}. 

\index{DIV@{DIV}!Token@{Token}}\index{Token@{Token}!DIV@{DIV}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a252466c3b1dd970d1c95f0d1300af7ca2}{
DIV}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a252466c3b1dd970d1c95f0d1300af7ca2}
}]/ \index{ASSIGN@{ASSIGN}!Token@{Token}}\index{Token@{Token}!ASSIGN@{ASSIGN}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a25de40ae16ac5d43c9bdab39ac77ebe89}{
ASSIGN}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a25de40ae16ac5d43c9bdab39ac77ebe89}
}]:= \index{SEMI\_\-COLON@{SEMI\_\-COLON}!Token@{Token}}\index{Token@{Token}!SEMI\_\-COLON@{SEMI\_\-COLON}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2e121a896d0c5c2467ae145dc05b8fe30}{
SEMI\_\-COLON}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2e121a896d0c5c2467ae145dc05b8fe30}
}]; \index{LESS\_\-THAN@{LESS\_\-THAN}!Token@{Token}}\index{Token@{Token}!LESS\_\-THAN@{LESS\_\-THAN}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2e297da8b7a9a6d0e1350d9c6d20cf5a4}{
LESS\_\-THAN}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2e297da8b7a9a6d0e1350d9c6d20cf5a4}
}]$<$ \index{EQUAL@{EQUAL}!Token@{Token}}\index{Token@{Token}!EQUAL@{EQUAL}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a209e1712690d78710a2157347decd7592}{
EQUAL}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a209e1712690d78710a2157347decd7592}
}]= \index{GREATER\_\-THAN@{GREATER\_\-THAN}!Token@{Token}}\index{Token@{Token}!GREATER\_\-THAN@{GREATER\_\-THAN}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a207c94c1f133824d5592462a087c2424b}{
GREATER\_\-THAN}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a207c94c1f133824d5592462a087c2424b}
}]$>$ \index{GUARD\_\-SEPERATOR@{GUARD\_\-SEPERATOR}!Token@{Token}}\index{Token@{Token}!GUARD\_\-SEPERATOR@{GUARD\_\-SEPERATOR}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2d48b38e0676f66d82a623e1d209df857}{
GUARD\_\-SEPERATOR}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2d48b38e0676f66d82a623e1d209df857}
}]\mbox{[}\mbox{]} \index{LEFT\_\-BRACKET@{LEFT\_\-BRACKET}!Token@{Token}}\index{Token@{Token}!LEFT\_\-BRACKET@{LEFT\_\-BRACKET}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2c2fdeb7d34fc9994b0240f5a391ac3ef}{
LEFT\_\-BRACKET}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2c2fdeb7d34fc9994b0240f5a391ac3ef}
}]\mbox{[} \index{MOD@{MOD}!Token@{Token}}\index{Token@{Token}!MOD@{MOD}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2cf3ec031a36b99954087554ff977cfa4}{
MOD}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2cf3ec031a36b99954087554ff977cfa4}
}]$\backslash$ \index{RIGHT\_\-BRACKET@{RIGHT\_\-BRACKET}!Token@{Token}}\index{Token@{Token}!RIGHT\_\-BRACKET@{RIGHT\_\-BRACKET}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a2ae835d552a4a3339d2787322f0d20eb8}{
RIGHT\_\-BRACKET}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a2ae835d552a4a3339d2787322f0d20eb8}
}]\mbox{]} \index{OR@{OR}!Token@{Token}}\index{Token@{Token}!OR@{OR}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a276f90db085fe3d420b8a32bcca904189}{
OR}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a276f90db085fe3d420b8a32bcca904189}
}]$|$ \index{NOT@{NOT}!Token@{Token}}\index{Token@{Token}!NOT@{NOT}}\item[{\em 
\hypertarget{class_token_d80928a0dff686ec8d11da0b5d6944a23ca172c4cc192fb59cbd47a6d0331429}{
NOT}
\label{class_token_d80928a0dff686ec8d11da0b5d6944a23ca172c4cc192fb59cbd47a6d0331429}
}]$\sim$ \end{description}
\end{Desc}



\subsubsection{Constructor \& Destructor Documentation}
\hypertarget{class_token_e31e5acc4ba765133d8b9ff6fc3da853}{
\index{Token@{Token}!Token@{Token}}
\index{Token@{Token}!Token@{Token}}
\paragraph{\setlength{\rightskip}{0pt plus 5cm}Token::Token ({\bf TokenType} {\em \_\-type})}\hfill}
\label{class_token_e31e5acc4ba765133d8b9ff6fc3da853}


Constuctor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-type}]\hyperlink{class_token}{Token} type \end{description}
\end{Desc}


\subsubsection{Member Function Documentation}
\hypertarget{class_token_42c89fc506c11aaf9f91f2e904e83bbe}{
\index{Token@{Token}!Type@{Type}}
\index{Type@{Type}!Token@{Token}}
\paragraph{\setlength{\rightskip}{0pt plus 5cm}{\bf Token::TokenType} Token::Type ()}\hfill}
\label{class_token_42c89fc506c11aaf9f91f2e904e83bbe}


Getter - type. 

\begin{Desc}
\item[Returns:]\hyperlink{class_token}{Token} type \end{Desc}
\hypertarget{class_token_4e0ca338277bccb0f820f5149e82af79}{
\index{Token@{Token}!toString@{toString}}
\index{toString@{toString}!Token@{Token}}
\paragraph{\setlength{\rightskip}{0pt plus 5cm}string Token::toString ()}\hfill}
\label{class_token_4e0ca338277bccb0f820f5149e82af79}


A String representation of \hyperlink{class_token}{Token}. 

\begin{Desc}
\item[Returns:]A string The string format will be: \par
 type: {\em int\/} \end{Desc}


Reimplemented in \hyperlink{class_numeric_fda3de675b3311f6abc2d47e8e05e692}{Numeric}, and \hyperlink{class_word_4355f2a127545dce5c25d67afb91034f}{Word}.